package threadcoreknowledge.createthread.startthread;

/**
 * 对比run和start两种方法启动线程
 */
public class StartAndRunMethod {

    public static void main(String[] args) {
        Runnable runnable = () -> {
            System.out.println(Thread.currentThread().getName());
        };
        runnable.run();

        new Thread(runnable).start();
    }

}
